﻿using WMSUIMVC.Aubit;

namespace WMSUIMVC.DTO.Movelibrary
{
    public class UpdMovelibraryDTO:BaseDTO
    {
        /// <summary>
        /// 移库id
        /// </summary>
        public int? MovelibraryId { get; set; }
        /// <summary>
        /// 移库单号
        /// </summary>
        public string? MovelibraryCode { get; set; }
        /// <summary>
        /// 移库类型
        /// </summary>
        public int? MovelibraryType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? MorderNumber { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? MakePerson { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MarkTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? ORremark { get; set; }
        /// <summary>
        /// 审核原因
        /// </summary>
        public string? ReasonForReview { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public int? DocumentStatus { get; set; }
        /// <summary>
        /// 是否移走
        /// </summary>
        public bool? IsRemoved { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; } = "1859803506630856704";
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; } = "呓语";

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; } = DateTime.Now;
        public List<UpdMovelibraryProductDto> updAllProducs { get; set; }
    }

    /// <summary>
    /// 移库产品表
    /// </summary>
    public class UpdMovelibraryProductDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int MoveProductId { get; set; }
        /// <summary>
        /// 移库单号
        /// </summary>
        public string? MovelibraryCode { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductsID { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? MoveProductNum { get; set; }
        /// <summary>
        /// 移入库位
        /// </summary>
        public int? Movelocation { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; } = "呓语";

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; } = DateTime.Now;
    }
}
